package com.youzan.cloud.component.biz.member.common.util;

import com.youzan.cloud.component.biz.member.dto.linker.out.MemberLinkerBaseResult;

public class MemberLinkerResultUtil {

    public static <T> MemberLinkerBaseResult success(T data){
        return  MemberLinkerBaseResult.builder().success(true).message("success").data(data).build();
    }

    public static <T> MemberLinkerBaseResult fail(T data, String code,String message){
        return  MemberLinkerBaseResult.builder().success(true).message(message).code(code).data(data).build();
    }
}
